`
c.
The ping result (either success or failure)
d. The current date and time
Like most tasks in Bash, there are multiple ways to achieve this goal. At
https://github.com/dolevf/Black-Hat-Bash/blob/master/ch02/exercise_solution.sh,
you can find an example solution to this exercise.
Summary
In this chapter, you learned how to perform flow control using conditions,
loops, and functions, how to control scripts using jobs, and how to search and
parse text. We also highlighted tips and tricks for building more effective and
penetration testing workflows using bash features.
Black Hat Bash (Early Access) © 2023 by Dolev Farhi and Nick Aleks